<%@ page import="javax.servlet.http.Part" %>
<html>
<head>
  <title>File Upload Example</title>
</head>

<body>
  <h1>Files Received at the Server</h1>
  <br/>

<%
    
  
 
  for (Part p: request.getParts()) {
      
    out.write("Part name: " + p.getName() + "<br/>\n");
    out.write("Size: " + p.getSize() + "<br/>\n");
    out.write("Content Type: " + p.getContentType() + "<br/>\n");
    out.write("Header Names:");
    for (String name: p.getHeaderNames()) {
        out.write(" " + name);
    }
    out.write("<br/><br/>\n");

  }
  
%>

</body>
</html>

